QT += gui widgets sql svg
TEMPLATE = lib
CONFIG += plugin

TARGET = ThreeDimensionCrossSectionPlugin

DEFINES += ThreeDimensionCrossSection_LIBRARY

SOURCES += \
    src/threedimensioncrosssectionfind.cpp \
    src/threedimensioncrosssectionmodule.cpp \
    src/threedimensioncrosssectionstandardedit1.cpp \


HEADERS += \
    include/ThreeDimensionCrossSectionInfo.h \
    include/threedimensioncrosssection_global.h \
    include/threedimensioncrosssectionfind.h \
    include/threedimensioncrosssectionmodule.h \
    include/threedimensioncrosssectionstandardedit1.h \
    include/util.h

INCLUDEPATH += include ../data/include
INCLUDEPATH += include ../data/Material

LIBS += -L../bin -ldata

DESTDIR = ../bin/plugins

RESOURCES += \
    threedimensioncrosssection_icon.qrc

FORMS += \
    ui/threedimensioncrosssectionfind.ui \
    ui/threedimensioncrosssectionstandardedit.ui \
    ui/threedimensioncrosssectiontool.ui

#添加copy
include($$PWD/../pri/copy.pri)

ks = $$OUT_PWD/../bin/ui

# 定义第三方 DLL 文件列表
uif = "$$PWD/ui/threedimensioncrosssectiontool.ui"

# 调用函数复制 DLL 到目标目录
$$copyFile($$uif, $$ks)




